﻿<me:PDCBase x:Class="WPFExcelReport.XSGZ18"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport"              
                   Background="White"  
                    Loaded="Window_Loaded"
     >
    <me:PDCBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <CollectionViewSource   x:Key="vwVKPOS" Source="{Binding Path=SetData.VKPOS}" />
    </me:PDCBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel>
            <TextBlock Text="订单号码:" FontSize="18"></TextBlock>
            <ComboBox Name="cmbVKP" Width="160" ItemsSource="{Binding Source={StaticResource ResourceKey=vwVKPOS}}" DisplayMemberPath="VKPNUM"  SelectedValuePath="VKPNUM" Text="{Binding VKPNUM}" >
            </ComboBox>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <TextBlock FontSize="18" Grid.Column="0" Text="订单量:"></TextBlock>
                <TextBox Grid.Column="1" Foreground="Red"  FontSize="18" Text="{Binding VKPMENGE1,Source={StaticResource ResourceKey=vwVKPOS}, Converter={StaticResource ResourceKey=d100}}" Width="60" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock FontSize="18" Grid.Column="0" Text="预留量:"></TextBlock>
                <TextBox Grid.Column="1" Foreground="Red"  FontSize="18" Text="{Binding VKPRESERV,Source={StaticResource ResourceKey=vwVKPOS}, Converter={StaticResource ResourceKey=d100}}" Width="60" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock FontSize="18" Grid.Column="0" Text="留位量:"></TextBlock>
                <TextBox Grid.Column="1" Foreground="Red"  FontSize="18" Text="{Binding VKPZUGET,Source={StaticResource ResourceKey=vwVKPOS}, Converter={StaticResource ResourceKey=d100}}" Width="60" />
            </Grid>
            <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock FontSize="18" Grid.Column="0" Text="缺口:"></TextBlock>
                <TextBox Grid.Column="1" Foreground="Red"  FontSize="18" Text="{Binding VKPOFFEN,Source={StaticResource ResourceKey=vwVKPOS}, Converter={StaticResource ResourceKey=d100}}" Width="60" />
            </Grid>
        </WrapPanel>
    </Grid>
</me:PDCBase>